<?php
namespace app\index\controller;

use think\Controller;
use think\Db;

class Index extends Controller
{
    public function index()
    {
        $data = Db::name('data')->find();
        $this->assign('result',$data);
        return $this->fetch();
    }

    public function hello($name = 'World',$city = '')
    {
        $this->assign('name',$name);
        $this->assign('city',$city);
        return $this->fetch();
    }

    public function test($name = '测试')
    {
        return '这里要进行路由' . $name;
    }
}
